package com.learning.security.service;

import com.learning.security.dal.dataobject.AdminUserRoleDO;
import com.learning.security.dal.mysql.AdminUserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminUserRoleServiceImpl implements AdminUserRoleService {
    @Autowired
    private AdminUserRoleMapper adminUserRoleMapper;

    @Override
    public List<AdminUserRoleDO> listByUserId(Long userId) {

        return adminUserRoleMapper.listByUserId(userId);
    }
}
